package com.orphan.supplier.service;


import com.orphan.supplier.mapper.TenderCallMapper;
import com.orphan.util.dto.PurchaseOrderDto;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.text.ParseException;
@Service
public class TenderCallListener {
    @Resource
    private ITenderCallService tenderCallService;


    @RabbitListener(queues = "queueQuoteAudit")
    public void insertTenderCall(PurchaseOrderDto purchaseOrderDto) {
        System.out.println(purchaseOrderDto);
//        try {
//            tenderCallService.add(purchaseOrderDto);
//        } catch (ParseException e) {
//            e.printStackTrace();
//        }
    }
}
